import os

class Config:
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev-secret-key'
    DATABASE_URL = os.environ.get('DATABASE_URL') or 'sqlite:///campus_assistant.db'
    
    # 百度人脸识别API配置
    BAIDU_APP_ID = os.environ.get('BAIDU_APP_ID') or '7017671'
    BAIDU_API_KEY = os.environ.get('BAIDU_API_KEY') or 'km2CMUYiwpcUSwQ1Dl5t0tRr'
    BAIDU_SECRET_KEY = os.environ.get('BAIDU_SECRET_KEY') or 'FqrGfmEi20UEvMsVjoANX3KZKpJyi0dq'
    
class DevelopmentConfig(Config):
    DEBUG = True
    
class ProductionConfig(Config):
    DEBUG = False
    
config = {
    'development': DevelopmentConfig,
    'production': ProductionConfig,
    'default': DevelopmentConfig
}